package OOP.day10.homework.AnimalDemo05;

public class Master {
    public void feed(Animal animal){
        animal.eat();
        System.out.println("主人喂食了宠物"+ animal.name);
    }

    public static void main(String[] args) {
        Master master = new Master();
        master.feed(new Dog("旺财",3,"白"));
    }
}
